﻿<Window x:Class="CartoonViewer.W_ChapterPictureViewer"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="W_ChapterPictureViewer" Height="720" Width="1024" KeyUp="Window_KeyUp"
	 
         >

   

                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition ></RowDefinition>
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="20"></ColumnDefinition>
                        <ColumnDefinition ></ColumnDefinition>
                        <ColumnDefinition Width="20"></ColumnDefinition>
                    </Grid.ColumnDefinitions>


                    <Button Name="BtnLeft" HorizontalAlignment="Stretch" Background="Transparent" Focusable="False" Grid.Column="0" Grid.Row="0" Click="BtnLeft_Click">《</Button>
                    <Button Name="BtnRight" HorizontalAlignment="Stretch" Background="Transparent" Focusable="False" Grid.Column="2" Grid.Row="0" Click="BtnRight_Click">》</Button>

                    <ScrollViewer x:Name="ScrollViewForPic" Grid.Column="1" Grid.Row="0"   VerticalScrollBarVisibility="Visible">
                        <StackPanel Name="PicPanel"  >
                            <Image x:Name="ImgShow" Source="images/top_huoying.jpg" Stretch="Uniform">
                                <Image.RenderTransform>
                                    <TransformGroup>
                                        <TranslateTransform x:Name="TranslateTransformForImgShow" X="0"></TranslateTransform>
                                        <ScaleTransform x:Name="ScalTransformForImgShow" CenterX="0.5" CenterY="0.5" ScaleX="1" ScaleY="1"></ScaleTransform>
                                    </TransformGroup>
                                </Image.RenderTransform>

                            </Image>
                        </StackPanel>
                    </ScrollViewer>

                    <StackPanel Name="PicPanelTemp"   Grid.Column="1" Grid.Row="0" Visibility="Hidden" >
                        <Image x:Name="ImgShowTemp" Source="images/top_sishen.jpg" Stretch="Uniform">
                            <Image.RenderTransform>
                                <TransformGroup>
                                    <TranslateTransform x:Name="TranslateTransformForImgShowTemp"  X="760"></TranslateTransform>
                                </TransformGroup>
                            </Image.RenderTransform>
                        </Image>
                    </StackPanel>


                </Grid>

 
</Window>


 
